Skip to content

Wait for Maven Central once per wave of packages, not once per package - #92

Merged
colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:maven-parallel-waits
Nov 30, 2026
Merged

colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:maven-parallel-waits

Conversation

@itvi-1234

Copy link
Copy Markdown
Member

With auto publishing, the script uploaded a package, waited until the Portal published it, then waited again until Maven Central served it, and only then moved on to the next package, whether or not that package depended on it. Each wait takes 15 to 30 minutes, so five packages took one to two and a half hours and could hit the 120-minute job timeout.

The packages now go up in waves. A wave holds every package whose selected dependencies came in earlier waves. All of a wave's uploads go up one after another, with the plugin waiting only until each upload is validated, so a bad upload still fails at once while the Portal publishes the others. Then the script waits for the whole wave together, checking every pending version on each poll, before the next wave, whose packages depend on it.

Five independent packages now take their uploads plus one wait. Packages that depend on each other still wait in order. Manual publishing and dry runs are unchanged.

With auto publishing, the script uploaded a package, waited until the Portal
published it, then waited again until Maven Central served it, and only then
moved on to the next package, whether or not that package depended on it.
Each wait takes 15 to 30 minutes, so five packages took one to two and a half
hours and could hit the 120-minute job timeout.

The packages now go up in waves. A wave holds every package whose selected
dependencies came in earlier waves. All of a wave's uploads go up one after
another, with the plugin waiting only until each upload is validated, so a bad
upload still fails at once while the Portal publishes the others. Then the
script waits for the whole wave together, checking every pending version on
each poll, before the next wave, whose packages depend on it.

Five independent packages now take their uploads plus one wait. Packages that
depend on each other still wait in order. Manual publishing and dry runs are
unchanged.

@colinjlacy colinjlacy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

@colinjlacy
colinjlacy merged commit 6273d1f into runtimeconditions:main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants